package com.hyh.quartz.config;

import com.hyh.quartz.helper.JobHelper;
import com.hyh.quartz.service.JobService;
import com.hyh.quartz.service.impl.JobServiceImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Quartz AutoConfiguration
 *
 * @Author: heyuhua
 * @Date: 2021/1/28 16:02
 */
@ConditionalOnWebApplication
@Configuration(proxyBeanMethods = false)
public class HyhQuartzAutoConfiguration {

    @Bean
    public JobHelper jobHelper() {
        return new JobHelper();
    }

    @Bean
    public JobService jobService() {
        return new JobServiceImpl();
    }

}
